package com.examples {
	import flash.display.Sprite;

	/**
	 * @author blake
	 */
	public class FirstAndLastEqual extends Sprite {
		public function FirstAndLastEqual() {
			trace(arrayTest([0, 7, 8, 0, 9, 0]));
			trace(arrayTest([9, 5, 9]));
			trace(arrayTest([5, 1, 5, 0, 9]));
			trace(arrayTest([1, 2, 3, 4, 5, 5]));
			trace(arrayTest([1, 2, 3]));
		}

		public function arrayTest(numbers : Array) : Boolean {
			if (numbers[0] == numbers[numbers.length - 1]) {
				return true;
			} else {
				return false;
			}
		}
	}
}
